{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">幻灯片列表</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a class="btn btn-primary" href="{php echo web_url('helper/helperslide/add');}">添加幻灯片</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover table-bordered">
				<thead>
				<tr>
					<th class="text-center" style="width:60px;">图片</th>
					<th class="text-center" style="width:60px;">排序</th>
					<th class="text-center" style="width:100px;">标题</th>
					<th class="text-center" style="width:200px;">链接</th>
					<th class="text-center" style="width:50px;">状态</th>
					<th class="text-center" style="width:100px;">操作</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $item}
				<tr class="text-center">
					<td>
						<img src="{php echo tomedia($item['img'])}" data-url="{php echo tomedia($item['img'])}" onerror="this.src='{php echo tomedia($item['img'])}'" class="scrollLoading" height="50px" width="100px" />
					</td>
					<td>
						{$item['sort']}
					</td>
					<td>
						{$item['title']}
					</td>
					<td style="overflow: hidden;">
						{$item['url']}
					</td>
					<td>{if $item['status']==1}<span class="label label-primary">显示</span>{else}<span class="label label-default">隐藏</span>{/if}</td>
					<td style="position:relative;">
						<a href="{php echo web_url('helper/helperslide/add',array('id'=>$item['id']))}">编辑 </a>
						-
						<a href="{php echo web_url('helper/helperslide/del',array('id'=>$item['id']))}">删除 </a>
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>

</div>
{php include wl_template('common/footer');}